package com.exam.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Des 权限实体
 * @Author ymj
 * @Date 2021/8/31 10:38
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("权限实体")
@TableName(value = "role")
public class Role extends BaseEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id", example = "1")
    private Integer id;
    @ApiModelProperty(value = "角色id", example = "1")
    private Integer roleId;
    @ApiModelProperty(value = "角色名称", example = "学生")
    private String roleName;
    @ApiModelProperty(value = "权限对应的功能菜单", example = "json串")
    private String menuInfo;
}
